﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A53 RID: 2643
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LineupSlotData : IMessage<LineupSlotData>, IMessage, IEquatable<LineupSlotData>, IDeepCloneable<LineupSlotData>, IBufferMessage
	{
		// Token: 0x17002171 RID: 8561
		// (get) Token: 0x06007688 RID: 30344 RVA: 0x0013CB7D File Offset: 0x0013AD7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LineupSlotData> Parser
		{
			get
			{
				return LineupSlotData._parser;
			}
		}

		// Token: 0x17002172 RID: 8562
		// (get) Token: 0x06007689 RID: 30345 RVA: 0x0013CB84 File Offset: 0x0013AD84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LineupSlotDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002173 RID: 8563
		// (get) Token: 0x0600768A RID: 30346 RVA: 0x0013CB96 File Offset: 0x0013AD96
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LineupSlotData.Descriptor;
			}
		}

		// Token: 0x0600768B RID: 30347 RVA: 0x0013CB9D File Offset: 0x0013AD9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupSlotData()
		{
		}

		// Token: 0x0600768C RID: 30348 RVA: 0x0013CBA5 File Offset: 0x0013ADA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupSlotData(LineupSlotData other) : this()
		{
			this.avatarType_ = other.avatarType_;
			this.id_ = other.id_;
			this.slot_ = other.slot_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600768D RID: 30349 RVA: 0x0013CBE2 File Offset: 0x0013ADE2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupSlotData Clone()
		{
			return new LineupSlotData(this);
		}

		// Token: 0x17002174 RID: 8564
		// (get) Token: 0x0600768E RID: 30350 RVA: 0x0013CBEA File Offset: 0x0013ADEA
		// (set) Token: 0x0600768F RID: 30351 RVA: 0x0013CBF2 File Offset: 0x0013ADF2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x17002175 RID: 8565
		// (get) Token: 0x06007690 RID: 30352 RVA: 0x0013CBFB File Offset: 0x0013ADFB
		// (set) Token: 0x06007691 RID: 30353 RVA: 0x0013CC03 File Offset: 0x0013AE03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x17002176 RID: 8566
		// (get) Token: 0x06007692 RID: 30354 RVA: 0x0013CC0C File Offset: 0x0013AE0C
		// (set) Token: 0x06007693 RID: 30355 RVA: 0x0013CC14 File Offset: 0x0013AE14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Slot
		{
			get
			{
				return this.slot_;
			}
			set
			{
				this.slot_ = value;
			}
		}

		// Token: 0x06007694 RID: 30356 RVA: 0x0013CC1D File Offset: 0x0013AE1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LineupSlotData);
		}

		// Token: 0x06007695 RID: 30357 RVA: 0x0013CC2C File Offset: 0x0013AE2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LineupSlotData other)
		{
			return other != null && (other == this || (this.AvatarType == other.AvatarType && this.Id == other.Id && this.Slot == other.Slot && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007696 RID: 30358 RVA: 0x0013CC88 File Offset: 0x0013AE88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.Slot != 0U)
			{
				num ^= this.Slot.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007697 RID: 30359 RVA: 0x0013CCFF File Offset: 0x0013AEFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007698 RID: 30360 RVA: 0x0013CD07 File Offset: 0x0013AF07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007699 RID: 30361 RVA: 0x0013CD10 File Offset: 0x0013AF10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Slot != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Slot);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(48);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this.Id != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Id);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600769A RID: 30362 RVA: 0x0013CD88 File Offset: 0x0013AF88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.Slot != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Slot);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600769B RID: 30363 RVA: 0x0013CDF8 File Offset: 0x0013AFF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LineupSlotData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.Slot != 0U)
			{
				this.Slot = other.Slot;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600769C RID: 30364 RVA: 0x0013CE5C File Offset: 0x0013B05C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600769D RID: 30365 RVA: 0x0013CE68 File Offset: 0x0013B068
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 48U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Id = input.ReadUInt32();
						}
					}
					else
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
					}
				}
				else
				{
					this.Slot = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002D44 RID: 11588
		private static readonly MessageParser<LineupSlotData> _parser = new MessageParser<LineupSlotData>(() => new LineupSlotData());

		// Token: 0x04002D45 RID: 11589
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002D46 RID: 11590
		public const int AvatarTypeFieldNumber = 6;

		// Token: 0x04002D47 RID: 11591
		private AvatarType avatarType_;

		// Token: 0x04002D48 RID: 11592
		public const int IdFieldNumber = 14;

		// Token: 0x04002D49 RID: 11593
		private uint id_;

		// Token: 0x04002D4A RID: 11594
		public const int SlotFieldNumber = 3;

		// Token: 0x04002D4B RID: 11595
		private uint slot_;
	}
}
